<template>
	<div style="background: #fff;">
		<!-- 公共组件-每个页面必须引入 -->
		<public-module></public-module>
		<u-cell-group >
			<u-cell :title="item.agreementTitle" :isLink="true" @click="toLink(item)" v-for="item in list" :key="item.agreementType"></u-cell>
		</u-cell-group>
	</div>

</template>

<script>
  import {mapState,mapMutations} from "vuex"
  import store from '@/store'
  import {agreementList,pageSeo} from '@/config/api.js'
  
  export default {
    data() {
      return {
        list:[]
      }
    },
    onLoad() {
      agreementList().then((res)=>{
		  this.list = res
	  })
    },
    async onShow() {
    	// #ifdef H5
    		pageSeo({pageType: 'indexPage'}).then((res)=>{
    			document.title = res.pageTitle;
    		})
    	// #endif
    	
    },
    methods: {
     toLink(item){
		 uni.navigateTo({
		   url: '/pagesUser/user/aboutInfo?agreementType='+item.agreementType
		 }) 
	 }
      
	  
    },

  }
</script>

<style lang="scss">

</style>